package cate.game.role.pvp.teampvp.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTeamPvp;

@ClientMsg(title = "组队竞技开始挑战的请求", description = "倒计时结束前挑战才发，倒计时结束后端会主动战斗, 下发剧本")
public class TeamPvpChallengeReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.pvp.teamPvp.challenge(cc.getRole());
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTeamPvp.CHALLENGE_REQ;
    }
}
